      
package com.example.commentservice.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient("user-service-blog")
public interface UserService {

    @RequestMapping("/user/getnamebyuid")
    String getUserNameByUid(@RequestParam("uid") Long uid);

}

    